package entity

import (
	"shqsoft.cn/pasnj/base"

	"github.com/jinzhu/gorm"
)

type CompClieJghDtip struct {
	ID   int    `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	CUNM string `gorm:"column:CUNM"`
	ENCD string `gorm:"column:ENCD"`
	DRJG string `gorm:"column:DRJG"`
}

func (CompClieJghDtip) TableName() string {
	return "T_COMP_CLIE_JGH_DTIP"
}

//导入后执行分户处理
func CompClieJghAccoAfterImport(tx *gorm.DB, params map[string]string) (err error) {
	tx.Exec("exec UP_COMP_CLIE_JGH_INS")
	return nil
}

func CompClieJghDtipEF() base.EntityFunc {
	return func() interface{} {
		entity := CompClieJghDtip{}
		return &entity
	}
}
func CompClieJghDtipESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []CompClieJghDtip
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("CompClieJghDtip", base.NewDefaultDao(CompClieJghDtipEF(), CompClieJghDtipESF(), nil))
	base.SetAfterCallBack("CompClieJghDtip", CompClieJghAccoAfterImport)
}
